package math.spbu.ru.historycharts;

import math.spbu.ru.historycharts.charts.TimeChart;
import android.content.Context;

public class ChartFactory {

	public static final ChartsView getTimeChartView(Context context,
			IDataProvider provider) {
		TimeChart chart = new TimeChart(provider.getDataset(),
				provider.getRenderer());
		chart.setDateFormat(provider.getDateFormat());
		return new ChartsView(context, chart, provider);
	}

}
